<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script >
			function getArryMax(arr){
				var max=arr[0];
				for(var i=1;i<=arr.length;i++){
					if(arr[i]>max){
						max=arr[i];
					}
				}
				return max;
			}
			var re=getArryMax([5,2,99,102,56,74]);
			console.log(re);
		</script>
	</body>
</html>
